package com.yami.shop.distribution.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
@Data
@ApiModel(value = "我的分销订单项信息")
public class DistributionOrdersVO implements Serializable {
    private static final long serialVersionUID = 6222259729061826852L;

    @ApiModelProperty(value = "订单流水号")
    private String orderNumber;

    @ApiModelProperty(value = "总金额")
    private Double total;

    @ApiModelProperty(value = "订单商品总数")
    private Integer prodCount;

    @ApiModelProperty(value = "图片")
    private String pic;

    @ApiModelProperty(value = "售价")
    private Double price;

    @ApiModelProperty(value = "商品名称")
    private String prodName;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @ApiModelProperty(value = "分销佣金")
    private Double distributionAmount;

    @ApiModelProperty(value = "订单是否有效 1 未结算，2 已结算")
    private Integer state;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private Long orderItemId;

    @ApiModelProperty(value = "失效原因(0正常，1.分销佣金大于或者等于订单项实付金额，2.订单项售后成功)")
    private Integer reson;


}
